package org.inspursc.s0517.health.evaluation.entity;

import lombok.Data;
import org.inspursc.s0517.health.common.entity.AbstractIdEntity;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

@Entity(name = "t_survey")
@Data
public class Survey  extends AbstractIdEntity {

    /**
     * 问卷名称
     */
    private String suName;

    /**
     * 问卷说明
     */
    private String description;

    /**
     * 问卷只读
     */
    private Boolean readOnly;

    /**
     * 是否可用
     */
    private Boolean disabled;


    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 二级分类跳转顺序(2018-7-17)
     */
    private String categoryOrder;

    /**
     * 问题
     */
    @Transient
    private List<Integer> questionIds ;

    private  int typeId; //for distinguish

}
